/*
 * @Author: Seon.Hu SeonHu@126.com
 * @Date: 2023-02-10 13:07:34
 * @LastEditors: Seon.Hu SeonHu@126.com
 * @LastEditTime: 2023-12-28 08:31:25
 * @FilePath: \bg-vben\src\router\routes\modules\designer.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const design: AppRouteModule = {
  path: '/designer',
  name: 'Designer',
  component: LAYOUT,
  redirect: '/designer/form-designer',
  meta: {
    orderNo: 888888888,
    icon: 'clarity:design-line',
    title: t('routes.designer.designer'),
    hideMenu: true,
  },
  children: [
    {
      path: 'formdesigner',
      name: 'FormDesigner',
      component: () => import('@/views/designer/form-designer/index.vue'),
      meta: {
        icon: 'iconoir:design-pencil',
        title: t('routes.designer.form.title'),
        ignoreKeepAlive: false,
      },
    },
  ],
};

export default design;
